Merge branch 'master' of ssh://xp-dev.com/RRRRHHHH_Code
[RRRRHHHH_Code] / ruralHouses client / src / domain / Booking.java
1 package domain;
2
3 import java.io.Serializable;
4 import java.util.Date;
5
6 public class Booking implements Serializable  {
7
8         /**
9          * 
10          */
11         private static final long serialVersionUID = 1L;
12         private int bookingNumber;
13         private Date bookingDate;
14         private Client client;
15         private Offer offer;
16         
17         
18         
19         public Booking(int bN , Offer offer,Client client) {
20                 
21                 this.bookingNumber = bN;
22                 this.offer = offer;
23                 this.client=client;
24                 //Booking date is assigned to actual date
25                 this.bookingDate= new java.util.Date(System.currentTimeMillis());
26         }
27         
28
29         public int getBookNumber() {
30                 return this.bookingNumber;
31         }
32
33         public void setOffer(Offer offer) {
34                 this.offer = offer;
35         }
36
37         public Offer getOffer() {
38                 return this.offer;
39         }
40
41
42         public void setBookDate(Date bookDate) {
43                 this.bookingDate = bookDate;
44         }
45
46         public Date getBookDate() {
47                 return this.bookingDate;
48         }
49         
50         public Client getClient() {
51                 return client;
52         }
53
54         public void setClient(Client client) {
55                 this.client = client;
56         }
57         
58 }